package com.twu.biblioteca;

import com.twu.biblioteca.Actions.InputReader;
import com.twu.biblioteca.Actions.Menu;
import com.twu.biblioteca.Models.User;

import java.io.*;

public class Main
{
    public static void main(String[] args) throws IOException
    {
        System.out.println("Welcome to Biblioteca!!");

        InputReader inputReader = new InputReader();

        Menu menu = new Menu();
        inputReader = new InputReader();

        while (true)
        {
            menu.printMenu();
            String userInput = inputReader.readUserInput();
            menu.selectMenuItem(userInput).takeAction();
        }
    }
}